﻿namespace Songhay.Data.GenericWeb
{
    /// <summary>
    /// Defines all Data commands of this handler.
    /// </summary>
    public enum DataCommand
    {
        /// <summary>Delete Document.</summary>
        DeleteDocument = 1,
        /// <summary>Delete Fragment.</summary>
        DeleteFragment,
        /// <summary>Delete Segment.</summary>
        DeleteSegment,
        /// <summary>Get Document and associated edit sets.</summary>
        GetDocumentForEdit,
        /// <summary>Get Fragment and associated edit sets.</summary>
        GetFragmentForEdit,
        /// <summary>Get Segment and associated edit sets.</summary>
        GetSegmentForEdit,
        /// <summary>Insert new Document data.</summary>
        InsertDocument,
        /// <summary>Insert new Fragment data.</summary>
        InsertFragment,
        /// <summary>Insert new Segment data.</summary>
        InsertSegment,
        /// <summary>Return GenericWeb index (tree) for conventional editing.</summary>
        ListGenericWebIndexForEdit,
        /// <summary>Return Segment ID lookup data.</summary>
        NewDocument,
        /// <summary>Return Document ID lookup data.</summary>
        NewFragment,
        /// <summary>Return empty set.</summary>
        NewSegment,
        /// <summary>Search GenericWeb data for conventional editing.</summary>
        Search,
        /// <summary>Update Document data.</summary>
        SetDocument,
        /// <summary>Update Fragment data.</summary>
        SetFragment,
        /// <summary>Update Segment data.</summary>
        SetSegment,
        /// <summary>Unknown data Command.</summary>
        Undefined = 0
    }
}
